<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;
use think\Db;
//添加卡密 验证
class DaoChuValidate extends Validate
{
    protected $rule = [
        'delete'       => 'require|number',
        'time'        => 'require',
        'end_time'        => 'require',
        'id'        => 'require|number|min:1',

    ];

    protected $message = [
        'delete'       => '请选择是否删除',
        'time'        => '请选择开始时间',
        'end_time'        => '请选在结束时间',
        'id'        => '产品id必传',
    ];

}